﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/jui.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    人员
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="layout" class="noNavTab">
        <div id="navTab">
            <h2 class="contentTitle">
                人员</h2>
            <div class="pageHeader">
                <div class="searchBar">
                    <table class="searchContent">
                        <tbody>
                            <tr>
                                <th>人员名称：</th>
                                <td>
                                    <%:Html.TextBox("RealName", "", new { @class = " textInput", maxlength = "15" })%>
                                </td>
                                <th>
                                    状态：
                                </th>
                                <td>
                                    <%Html.RenderPartial("~/Views/BaseLibrary/ForStates.ascx"); %>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button onclick="loadList(0)">
                                            查询</button>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <%
                string tname = "Sys_IBUsers";
                string url = "/sysManage/list_4";
                string addurl = "/sysManage/add_4";
                string editurl = "/sysManage/edit_4/{id}";
            %>
            <div class="pageContent">
                <div class="panelBar">
                    <ul class="toolBar">
                        <li>
                            <a class="add" href='<%:addurl %>'><span>添加</span></a>
                        </li>
                        <li>
                            <a class="edit" href='<%:editurl %>' target="editblank" rel="ids"><span>修改</span></a></li>
                        <li>
                            <%= JUIResult.ReturnOpen(tname, url, "1")%></li>
                        <li>
                            <%= JUIResult.ReturnDel(tname, url, "1")%></li>
                        <li class="line">line</li>
                    </ul>
                </div>
                <div id="listDt" class="pageContent">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../../content/jui-normal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/pager.js"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            loadList(0);
        });
        function loadList(i) {
            var htmlname = "listDt";
            var pars = $('#RealName').val();
            pars = encodeURI(pars);
            var name = "0_RealName__3";
            var tName = '<%= DencryptHelper.Encrypt("Sys_IBUsers") %>';
            var control = "sysManage/IBUsers/List";
            var datebase = "1";
            var states = $('#states').val();
            list(htmlname, pars, name, tName, control, datebase, states);
        }
    </script>
</asp:Content>
